<?php
// bring in the code
require_once 'ActiveText.php';

// generate the image
try {
  
  $i = ActiveText::create('config.ini')
       ->setPreset($_GET['preset'])
       ->setText($_GET['text'])
       ->output();
    
} catch (ActiveTextException $e) {
  die ($e->getMessage());
}